form {
    margin-top: 8px;
}

form dt {
    font-size: 80%;
    line-height: 40px;
}

select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: none;
}

input, select {
    vertical-align: middle;
    height: 100%;
    border: 0;
    background: transparent;
    float: left;
    width: calc(100% - 128px);
    width: -moz-calc(100% - 128px);
    width: -webkit-calc(100% - 128px);
    text-overflow: ellipsis;
    padding-top: 3px;
    font-size: 100%;
}

/*input.not-empty {*/
    /*background-image: url(../img/ico/del-g.png);*/
    /*background-size: 12px;*/
    /*background-position: ;*/
/*}*/

textarea {
    border:0;
    width: 100%;
    height:100%;
    background: transparent;
    vertical-align: middle;
    padding: 15px;
}

form dl {
    margin-top: 10px;
}

form dt {
    display: block;
    clear: both;
    height: 40px;
    border-bottom: 1px solid #a0a0a0;
    margin-left: 7%;
    margin-right: 7%;
}

form dt.img {
    padding: 0;
    margin: 0;
    width: 100%;
    border: 0;
    padding-top: 20px;
    background: url("../img/ico/photo.png") no-repeat center center;
    min-height: 160px;
    background-size: 48px;
    text-align: center;
    vertical-align: middle;
}

form dt.img>img {
    width: 100%;
    margin: auto;
}

form dt.textarea {
    width: 100%;
    background: #f6f6f6;
    height:auto;
    margin: 20px 0 0 0;
    padding: 0;
    line-height: 45px;
    border: 0;
}

form dt.textarea>span{
    vertical-align: middle;
    padding: 15px;
    line-height: 1.3;
    background: #f6f6f6;
    width: 100%;
}

form dt > label {
    float: left;
    display: block;
    margin-right: 8px;
    width: 110px;
    height: 40px;
    white-space: nowrap;
    line-height: 40px;
    background-size: 16px;
    padding-left: 36px;
    color: #999;
    vertical-align: middle;
    /*border: 1px dotted brown;*/
}

form dt > label:before {
    content: "*";
    font-size: 1.2em;
    color: #fff;
}

form dt > label.required:before {
    content: "*";
    font-size: 1.2em;
    color: #D13345;
}

.form-ico {
    background-repeat: no-repeat;
    background-position: 8px 11px;
}

form dt[elements="2"] {
}

form dt[elements="2"] input {
    width: calc(70% - 90px);
    width: -moz-calc(70% - 90px);
    width: -webkit-calc(70% - 90px);
}

form dt[elements="2"] select {
    width: calc(30% - 38px);
    width: -moz-calc(30% - 38px);
    width: -webkit-calc(30% - 38px);
    /*text-align: right;*/   /*select的文字对齐，firefox支持，chrome和safari均不支持*/
    background-position:90% center;
}

form dt > span {
    display: block;
    float: left;
    height: 100%;
    width: calc(100% - 128px);
    width: -moz-calc(100% - 128px);
    width: -webkit-calc(100% - 128px);
    line-height: 40px;
    text-overflow: ellipsis;
    overflow: hidden;
}

form dt > select {
    background: url("../img/ico/right-g.png") no-repeat 97% center;
    background-size: 8px;
}

form dt > input.location {
    /*background-color: #369;*/
    background: url("../img/ico/add-r.png") no-repeat 97% center;
    background-size: 16px;
}

.tips {
    text-align: center;
    margin: 10px 0 0 0;
    color: #bfbfbf;
    font-size: 80%;
}

form .error-msg {
    text-align: center;
    font-size: 80%;
    margin: 10px 0 0 0;
    color: #d13345;
    line-height: 100%;
    display: none;
}

form dt > input.cny {
    font-size: 140%;
}

form  label.error{
    color: #d13345;
}